<?php
		session_start(); 
 			if (!empty($_SESSION['username']) && !empty($_SESSION['password'])) { 
			include "libfunc.php";
			if($_GET['idproduk']){
			$link = koneksi_db();
			$id=$_GET['idproduk'];
			 $sql = "DELETE FROM produk WHERE idproduk='$id'";
			 mysql_query( $sql,$link);
			 echo '<b style="color:#0000FF; text-decoration:blink; font-size:16px">Selamat Data produk dengan id ='.$id.'berhasil di Hapus! </b>';
			 echo "<script language='javascript'>window.location = '../admin/produk.php/'</script>";
			}
			}else {
			echo "<script language='javascript'>window.location = '../admin/'</script>";
			}

?>
